import request from '@/utils/request'

export function DeviceAdd(data) {
  return request({
    url: '/DeviceManger/DeviceAdd',
    method: 'POST',
    data,
  })
}

export function DeviceUdp(data) {
  return request({
    url: '/DeviceManger/DeviceUdp',
    method: 'POST',
    data,
  })
}

export async function DeviceDel(data) {
  return request({
    url: '/DeviceManger/DeviceDel',
    method: 'post',
    data,
  })
}

export function DeviceSel(data) {
  return request({
    url: '/DeviceManger/DeviceSel',
    method: 'get',
    params: data,
  })
}

export async function WebLogin(data) {
  return request({
    url: '/Login/WebLogin',
    method: 'post',
    data,
  })
}

export async function WebReLogin(data) {
  return request({
    url: '/Login/WebReLogin',
    method: 'post',
    data,
  })
}
